package com.gosophia.conferenceManagement.summary.service;

import java.util.List;

import com.gosophia.commons.exception.BusinessException;
import com.gosophia.conferenceManagement.common.entity.Document;
import com.gosophia.conferenceManagement.common.service.ConferenceHandleService;
import com.gosophia.conferenceManagement.summary.entity.SummaryJobData;

/**
 * 会议总结api
 * @author mayue
 *
 */
public interface SummaryService extends ConferenceHandleService{

    /**
     * 删除指定id的jobData的文档(包括在线和附件)
     * @param jobId:不能为null
     */
    public void deleteAllDocumentById(Long jobId);
    
    /**
     * 保存或修改summaryJobData
     * @param summaryJobData:不能为null
     * @param attachements:附件
     * @param onlineDocument:在线文档
     * @throws BusinessException
     */
    public void saveOrUpdateSummaryJobData(SummaryJobData summaryJobData,List<Document> attachements,Document onlineDocument) throws BusinessException;

    /**
     * 自动保存(自动保存时新选择的附件不能进行自动保存)
     * @param summaryJobData:不能为null
     * @param onlineDocument:在线文档
     * @throws BusinessException
     */
    public void autoSaveSummaryJobData(SummaryJobData summaryJobData) throws BusinessException;
}
